using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;

namespace POB
{
#if WINDOWS || XBOX
	static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		static void Main(string[] args)
		{
			Matrix m1 = Matrix.CreateTranslation(new Vector3(10, 10, 10));
			Matrix m2 = Matrix.CreateScale(.41f);
			Matrix mr = m1 * m2;

			using (Game1 game = new Game1())
			{
				game.Run();
			}
		}

		public static void Begin(this SpriteBatch batch, Matrix matrix)
		{
			batch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, RasterizerState.CullCounterClockwise, null, matrix);
		}

        public static Vector2 ToVector2(this string s)
        {
            Vector2 v = Vector2.Zero;
            string[] numbers = s.Split(',');

            v.X = Convert.ToSingle(numbers[0]);
            v.Y = Convert.ToSingle(numbers[1]);

            return v;
        }
	}
#endif
}

